package View;

import Model.InterGrid;

import javax.swing.*;

/**
 * This class is a modified JFrame
 *
 * @author Matthew
 *         Date: Oct 8, 2010
 *         Time: 9:13:11 PM
 */
public class SimulationFrame extends JFrame {
    private DisplayPanel display;

    /**
     * Frame constructor
     *
     * @param display = DisplayPanel
     */
    public SimulationFrame(DisplayPanel display) {
        this.display = display;
        setTitle("Traffic Simulator 1.0");
        add(this.display);
        pack();
    }

    public static void main(String[] args) {
        SimulationFrame sf = new SimulationFrame(new DisplayPanel(new InterGrid()));
        sf.setVisible(true);
    }

}

